package com.woniu.market_stall_web.service;

import com.woniu.market_stall_web.mapper.OrderMapper;
import com.woniu.market_stall_web.vo.OrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderService {
    @Autowired
    OrderMapper orderMapper;

    public List<OrderVo> queryAll(int userId){
        return orderMapper.select(userId);
    }

    public List<OrderVo> queryNoPay(int userId){
        return orderMapper.selectOrderToBePay(userId);
    }

    public List<OrderVo> queryAlreadyPay(int userId){
        return orderMapper.selectOrderAlreadyPay(userId);
    }

}
